using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter11
{
	/// <summary>
	/// Example02: The Torque Vector
	/// A force of F = (2.00i + 3.00j) N is applied 
	/// to an object that is pivoted about a fixed axis aligned 
	/// along the z coordinate axis. If the force is applied 
	/// at a point located at r = (4.00i + 5.00j) m, find the 
	/// torque vector tau.
	/// </summary>
	public class Example02
	{
		public Example02()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Force f = new L.Force();
			f.X = 2.0;
			f.Y = 3.0;

			L.Position r = new L.Position();
			r.X = 4.0;
			r.Y = 5.0;

			L.Torque tau = new L.Torque(r,f);
			
			result = Convert.ToString(tau.X)+"i+"+
				Convert.ToString(tau.Y)+"j+"+
				Convert.ToString(tau.Z)+"k";
		}
	}
}
